package top.leix.springdemo.controller;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import top.leix.springdemo.Res;
import top.leix.springdemo.services.CommonService;
import top.leix.springdemo.services.LabService;
import javax.annotation.Resource;

@Slf4j
@Tag(name = "通用接口")
@CrossOrigin
@RestController
@RequestMapping("/common")
public class CommonController {

    @Resource
    LabService labService;

    @Resource
    CommonService commonService;
    /**
     * 返回classtable，排课表
     */
    @PostMapping("/queryLab")
    public Res queryLab() {
        return labService.queryLab();
    }

    /**
     * 返回自定义排课类
     */
    @PostMapping("/queryMyReturn")
    public Res queryMyReturn() {
        return commonService.queryMyReturn();
    }



}
